import request from '../common/request';

const base = '/common';

export interface LoginParamsType {
  username: String;
  password: String;
  mobile: String;
}

export async function login(param: any) {
  return request({
    url: `${base}/login`,
    method: 'post',
    data: { ...param, crypto: true },
  });
}

export async function selectMenuListByUser(param: any) {
  return request({
    url: `${base}/selectMenuListByUser`,
    method: 'post',
    data: { ...param, crypto: true },
  });
}
